Part Number Hot Search : 
MP2307 B1093 4FCT8 TC58DVG0 AC5104FS 6MBP20 ELJSC330 LT450AU
Product Description
Full Text Search
 

To Download AT91SAM7L128 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  note: this is a summary document. the complete document is available on the atmel website at www.atmel.com.. features ? incorporates the arm7tdmi ? arm ? thumb ? processor ? high-performance 32-bit risc architecture ? high-density 16-bit instruction set ? leader in mips/watt ? embeddedice ? in-circuit emulation, debug communication channel support  internal high -speed flash ? 128 kbytes (AT91SAM7L128), organized in 512 pages of 256 bytes single plane ? 64 kbytes (at91sam7l64), organized in 256 pages of 256 bytes single plane ? single cycle access at up to 15 mhz in worst case conditions ? 128-bit read access ? page programming time: 4.6 ms, including page auto erase, full erase time: 10 ms ? 10,000 write cycles, 10-year data retentio n capability, sector lock capabilities, flash security bit ? fast flash programming interfa ce for high volume production  internal high-speed sram, single-cycle access at maximum speed ? 6 kbytes  2 kbytes directly on main supply that can be used as backup sram  4 kbytes in the core  memory controller (mc) ? enhanced embedded flash controller, ab ort status and misalignment detection  enhanced embedded flash controller (eefc) ? interface of the flash block wi th the 32-bit internal bus ? increases performance in arm and thum b mode with 128-bit wide memory interface  reset controller (rstc) ? based on zero-power power-on reset and fully programmble brownout detector ? provides external reset signal shaping and reset source status  clock generator (ckgr) ? low-power 32 khz rc oscillator, 32 khz on-chip oscillator, 2 mhz fast rc oscillator and one pll  supply controller (supc) ? minimizes device power consumption ? manages the different supplies on chip ? supports multiple wake-up sources  power management controller (pmc) ? software power optimization capabilities , including active and four low power modes:  idle mode: no processor clock  wait mode: no processor clock, voltage regulator output at minimum  backup mode: voltage regulato r and processor switched off  off (power down) mode: enti re chip shut down exce pt for force wake up pin (fwup) that re-activates the de vice. 100 na current consumption.  in active mode, dynamic power consumption <30 ma at 36 mhz ? three programmable external clock signals ? handles fast start up at91 arm thumb-based microcontroller AT91SAM7L128 at91sam7l64 summary preliminary 6257as?atarm?28-feb-08
2 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary  advanced interrupt controller (aic) ? individually maskable, eight-level pr iority, vectored interrupt sources ? two external interrupt sources and one fast interrupt source, spurio us interrupt protected  debug unit (dbgu) ? two-wire uart and support for debug communication channel interrupt, programmable ice access prevention  periodic interval timer (pit) ? 20-bit programmable counter pl us 12-bit interval counter  windowed watchdog (wdt) ? 12-bit key-protected programmable counter ? provides reset or interru pt signals to the system ? counter may be stopped while the process or is in debug state or in idle mode  real-time clock (rtc) ? two hundred year calendar with alarm ? runs off the internal rc or crystal oscillator  three parallel input/output controllers (pioa, piob, pioc) ? eighty programmable i/o lines multiplexed with up to two peripheral i/os ? input change interrupt ca pability on each i/o line ? individually programmable open-drain, pull-up resistor and synchronous output  eleven peripheral dma controller (pdc) channels  one segment lcd controller ? display capacity of forty segments and ten common terminals ? software selectable lcd output voltage (contrast)  two universal synchronous/asynchrono us receiver transmitters (usart) ? individual baud rate generator, irda ? infrared modulation/demodulation ? support for iso7816 t0/t1 smart card, hardware handshaking, rs485 support ? manchester encoder/decoder ? full modem line support on usart1  one master/slave serial peripheral interface (spi) ? 8- to 16-bit programmable da ta length, four external peripheral chip selects  one three-channel 16-bi t timer/counter (tc) ? three external clock inputs, two multi-purpose i/o pins per channel ? double pwm generation, capture/waveform mode, up/down capability  one four-channel 16-bit pwm controller (pwmc)  one two-wire interface (twi) ? master, multi-master and slav e mode support, all atmel ? two-wire eeproms and i 2 c compatible devices supported ? general call supported in slave mode  one 4-channel 10-bit analog-to-digital converter, four channels multiplexed with digital i/os  sam-ba ? boot assistant ? default boot program ? interface with sam-ba gr aphic user interface ? in application programming function (iap)  ieee ? 1149.1 jtag boundary sc an on all digital pins  four high-current drive i/o lines, up to 4 ma each  power supplies ? embedded 1.8v regulator, drawing up to 60 ma for the core with programmable output voltage ? single supply 1.8v - 3.6v  fully static operation: up to 36 mhz at 85 c, worst case conditions  available in a 128-lead lqfp green and a 144-ball lfbga green package
3 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 1. description the AT91SAM7L128/64 are low power members of atmel?s smart arm microcontroller family based on the 32-bit arm7 ? risc processor and high-speed flash memory.  AT91SAM7L128 features a 128 kbyte high-speed flash and a total of 6 kbytes sram.  at91sam7l64 features a 64 kbyte high-speed flash and a total of 6 kbytes sram. they also embed a large set of peripherals, including a segment lcd controller and a complete set of system functions minimizing the number of external components. these devices provide an ideal migration path for 8-bit microcontroller users looking for addi- tional performance, extended memory and higher le vels of system integration with strong constraints on power consumption. featuring innovative power reduction m odes and ultra-low-power operation, the AT91SAM7L128/64 is tailored for battery operated applications such as calculators, toys, remote controls, medical devices, mobile phone accessories and wireless sensors. the embedded flash memory can be programmed in-system via the jtag-ice interface or via a parallel interface on a production programmer pr ior to mounting. built-in lock bits and a secu- rity bit protect the firmware from accidental overwrite and preserve its confidentiality. the AT91SAM7L128/64 system controller includes a reset controller capable of managing the power-on sequence of the microcontroller and the complete system. correct device operation can be monitored by a built-in brownout detector and a watchdog running off an integrated oscillator. by combining the arm7tdmi processor with on-chip flash and sram, and a wide range of peripheral functions, including usart, spi, ex ternal bus timer counter, rtc and analog-to- digital converters on a monolithic chip, t he AT91SAM7L128/64 microcontroller is a powerful device that provides a flexible, cost-effective solution to many embedded control applications.
4 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 2. block diagram figure 2-1. AT91SAM7L128/64 block diagram tdi tdo tms tck nrst fiq irq0-irq1 pck0-pck2 pmc peripheral bridge peripheral data controller aic pll sram 2 kbytes( back-up) 4 kbytes (core) arm7tdmi processor ice jtag scan jtagsel pioa (26 ios) timer counter npcs0 npcs1 npcs2 npcs3 miso mosi spck flash 64/128 kbytes drxd dtxd tclk0 tclk1 tclk2 tioa0 tiob0 tioa1 tiob1 tioa2 tiob2 memory controller abort status address decoder misalignment detection pio pio apb embedded flash controller ad0 ad1 ad2 ad3 adtrg 11 channels pdc pdc spi pdc adc advref tc0 tc1 tc2 twd twck twi xin xout vddio1 pwmc pwm0 pwm1 pwm2 pwm3 1.8 v voltage regulator gnd vddout vddcore vddio1 vddcore fast flash programming interface erase pgmd0-pgmd15 pgmncmd pgmen0-pgmen2 pgmrdy pgmnvalid pgmnoe pgmck pgmm0-pgmm3 vddio2 tst dbgu pdc pdc pio pit wdt system controller vddio1 sam-ba rom (12 kbytes) nrstb fwup piob (24 ios) lcd controller seg00-seg39 com0-com9 pioc (30 ios) 32k rcosc supply controller por osc bod 2 mhz rcosc vddio1 rtc usart0 rxd0 txd0 sck0 rts0 cts0 pdc pdc usart1 rxd1 txd1 sck1 rts1 cts1 dcd1 dsr1 dtr1 ri1 pdc pdc pio pdc pdc vddlcd capp1 capm1 capp2 capm2 clkin pllrc vdd3v6 lcd voltage regulator vddio2 charge pump vddinlcd
5 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 3. signal description table 3-1. signal description list signal name function type active level voltag e reference comments power vddio1 i/o lines (pioc) and voltage regulator power supply power from 1.80v to 3.6v vddout voltage regulator output power vddcore core power supply power connected externally to vddout vddinlcd charge pump power supply power from 1.80v to 3.6v vdd3v6 charge pump output power vddlcd lcd voltage regulator power supply power vddio2 lcd voltage regulator output and lcd i/o lines power supply (pioa and piob) power 1.80v to 3.6v capp1 charge pump capacitor 1 power capacitor needed between capp1 and capm1. capm1 charge pump capacitor 1 power capp2 charge pump capacitor 2 power capacitor needed between capp2 and capm2. capm2 charge pump capacitor 2 power fwup force wake-up input low vddio1 needs external pull-up. wkup0-15 wake-up inputs used in backup mode and fast start-up inputs in wait mode input vddio1 gnd ground ground clocks, oscillators and plls xin 32 khz oscillator input input vddio1 xout 32 khz oscillator output output vddio1 clkin main clock input input vddio1 should be tied low when not used. pck0 - pck2 programmable clock output output pllrc pll filter input vddcore pllrcgnd pll rc filter ground power must not be connected to external ground. ice and jtag tck test clock input vddio1 no internal pull-up resistor tdi test data in input vddio1 no internal pull-up resistor tdo test data out output vddio1 tms test mode select input vddio1 no internal pull-up resistor jtagsel jtag selection input vddio1 internal pull-down resistor flash memory erase flash and nvm configuration bits erase command input high vddio1 internal pull-down (15 k ? ) resistor
6 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary reset/test nrst microcontroller reset i/o low vddio1 internal pull-up (100 k ? ) resistor tst test mode select input high vddio1 internal pull-down (15 k ? ) resistor nrstb asynchronous master reset input low vddio1 internal pull-up (15 k ? ) resistor debug unit drxd debug receive data input dtxd debug transmit data output aic irq0 - irq1 external interrupt inputs input fiq fast interrupt input input pio pa0 - pa25 parallel io controller a i/o vddio2 pulled-up input at reset pb0 - pb23 parallel io controller b i/o vddio2 pulled-up input at reset pc0 - pc29 parallel io controller c i/o vddio1 pulled-up input at reset usart sck0 - sck1 serial clock i/o txd0 - txd1 transmit data i/o rxd0 - rxd1 receive data input rts0 - rts1 request to send output cts0 - cts1 clear to send input dcd1 data carrier detect input dtr1 data terminal ready output dsr1 data set ready input ri1 ring indicator input timer/counter tclk0 - tclk2 external clock inputs input tioa0 - tioa2 timer counter i/o line a i/o tiob0 - tiob2 timer counter i/o line b i/o pwm controller pwm0 - pwm3 pwm channels output serial peripheral interface miso master in slave out i/o mosi master out slave in i/o spck spi serial clock i/o npcs0 spi peripheral chip select 0 i/o low npcs1-npcs3 spi peripheral chip select 1 to 3 output low table 3-1. signal description list (continued) signal name function type active level voltag e reference comments
7 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary two-wire interface twd two-wire serial data i/o twck two-wire serial clock i/o analog-to-digital converter ad0-ad3 analog inputs input vddcore adtrg adc trigger input advref adc reference analog vddcore fast flash programming interface pgmen0- pgmen2 programming enabling input vddio1 pgmm0- pgmm3 programming mode input vddio1 pgmd0- pgmd15 programming data i/o vddio1 pgmrdy programming ready output high vddio1 pgmnvalid data direction output low vddio1 pgmnoe programming read input low vddio1 pgmck programming clock input vddio1 pgmncmd programming command input low vddio1 segmented lcd controller com[9:0] common terminals output vddio2 seg[39:0] segment terminals output vddio2 table 3-1. signal description list (continued) signal name function type active level voltag e reference comments
8 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 4. package and pinout the AT91SAM7L128/64 is available in:  20 x 14 mm 128-lead lqfp package with a 0.5 mm lead-pitch  10 x 10 mm 144-ball lfbga package with a 0.8 mm pitch. the part is also available in die delivery. 4.1 128-lead lqfp package outline figure 4-1 shows the orientation of the 128-lead lqfp package. a detailed mechanical description is given in the mechanical characteristics section of the prod- uct datasheet. figure 4-1. 128-lead lqfp package outline (top view) 65 103 102 64 39 38 1 128
9 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 4.2 128-lead lqfp package pinout table 4-1. pinout for 128-lead lqfp package 1 tst 33 vddlcd 65 pb21 97 pc10/pgmm3 2 vddcore 34 vdd3v6 66 pb22 98 pc11/pgmd0 3 pa0 35 capm2 67 pb23 99 pc12/pgmd1 4 pa1 36 capp2 68 gnd 100 vddcore 5 pa2 37 capm1 69 advref 101 pc13/pgmd2 6 pa3 38 capp1 70 ad3 102 pc14/pgmd3 7 pa4 39 vddinlcd 71 ad2 103 pc15/pgmd4 8 pa5 40 gnd 72 ad1 104 pc16/pgmd5 9 pa6 41 pb0 73 ad0 105 pc17/pgmd6 10 pa7 42 pb1 74 vddout 106 pc18/pgmd7 11 pa8 43 pb2 75 vddio1 107 pc19/pgmd8 12 pa9 44 pb3 76 gnd 108 pc20/pgmd9 13 pa10 45 pb4 77 pc28 109 pc21/pgmd10 14 gnd 46 pb5 78 pc29 110 pc22/pgmd11 15 vddio2 47 pb6 79 nrst 111 pc23/pgmd12 16 pa11 48 pb7 80 erase 112 pc24/pgmd13 17 pa12 49 pb8 81 tck 113 pc25/pgmd14 18 pa13 50 pb9 82 tms 114 pc26/pgmd15 19 pa14 51 pb10 83 jtagsel 115 pc27 20 pa15 52 pb11 84 vddcore 116 tdi 21 pa16 53 pb12 85 vddio1 117 tdo 22 pa17 54 pb13 86 gnd 118 fwup 23 pa18 55 vddio2 87 pc0/pgmen0 119 vddio1 24 pa19 56 gnd 88 pc1/pgmen1 120 gnd 25 pa20 57 pb14 89 pc2/pgmen2 121 pllrc 26 pa21 58 pb15 90 pc3/pgmncmd 122 pllrcgnd 27 pa22 59 pb16 91 pc4/pgmrdy 123 gnd 28 vddcore 60 pb17 92 pc5/pgmnoe 124 vddcore 29 pa23 61 pb18 93 pc6/pgmnvalid 125 clkin 30 pa24 62 vddcore 94 pc7/pgmm0 126 nrstb 31 pa25 63 pb19 95 pc8/pgmm1 127 xin/pgmck 32 vddio2 64 pb20 96 pc9/pgmm2 128 xout
10 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 4.3 144-ball lfbga package outline figure 4-2 shows the orientation of the 144-ball lfbga package. a detailed mechanical description is given in the mechanical characteristics section of the prod- uct datasheet. figure 4-2. 144-ball lfbga package outline (top view) abcdefghjklm 12 11 10 9 8 7 6 5 4 3 2 1 ball a1
11 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 4.4 144-ball lfbga pinout table 4-2. sam7l128/64 pinout for 144-ball lfbga package pin signal name pin signal name pin signal name pin signal name a1 xout d1 pa6 g1 vdd3v6 k1 capm1 a2 xin d2 pa5 g2 pa17 k2 vddio2 a3 vddcore d3 pa7 g3 pa16 k3 vddio2 a4 gnd d4 nc g4 pa15 k4 pa25 a5 pllrcgnd d5 pc26/pgmd15 g5 gnd k5 pb3 a6 pllrc d6 pc25/pgmd14 g6 gnd k6 pb10 a7 pc24/pgmd13 d7 pc21/pgmd11 g7 gnd k7 pb13 a8 pc23//pgmd12 d8 pc18/pgmd7 g8 vddio1 k8 pb15 a9 pc17/pgmd6 d9 pc6/pgmnvalid g9 nrst k9 pb20 a10 nc d10 pc7/pgmm0 g10 tms k10 vddcore a11 pc14 d11 pc4/pgmrdy g11 erase k11 vddcore a12 pc12 d12 pc3/pgmncmd g12 vddout k12 ad2 b1 pa1 e1 vddio2 h1 capm2 l1 capp1 b2 pa0 e2 pa10 h2 pa22 l2 vddio2 b3 nrstb e3 pa9 h3 pa19 l3 vddio2 b4 test e4 pa11 h4 pa18 l4 pb4 b5 tdo e5 pa8 h5 gnd l5 pb5 b6 pc27 e6 vddio1 h6 gnd l6 pb11 b7 gnd e7 vddio1 h7 gnd l7 pb12 b8 nc e8 vddio1 h8 vddcore l8 pb17 b9 pc20/pgmd9 e9 pc5/pgmnoe h9 pc29 l9 pb19 b10 pc15/pgmd4 e10 pc0/pgmen0 h10 vddcore l10 pb22 b11 pc13/pgmd2 e11 pc2/pgmen2 h11 pc28 l11 pb23 b12 pc11/pgmd0 e12 vddcore h12 ad0 l12 ad3 c1 pa3 f1 vddlcd j1 capp2 m1 vddinlcd c2 pa4 f2 pa13 j2 pa23 m2 pb0 c3 pa2 f3 pa14 j3 pa24 m3 pb1 c4 clkin f4 pa12 j4 pa21 m4 pb2 c5 fwup f5 gnd j5 pa20 m5 pb6 c6 tdi f6 gnd j6 pb8 m6 pb7 c7 pc22/pgmd11 f7 gnd j7 pb9 m7 vddio2 c8 pc19/pgmd8 f8 vddio1 j8 pb14 m8 pb16 c9 pc16/pgmd5 f9 tck j9 vddcore m9 pb18 c10 pc9/pgmm2 f10 jtagsel j10 vddcore m10 pb21 c11 pc10/pgmm3 f11 pc1/pgmen1 j11 vddcore m11 gnd c12 pc8/pgmm1 f12 vddio1 j12 ad1 m12 advref
12 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 5. power considerations 5.1 power supplies the AT91SAM7L128/64 has six types of power supply pins and integrates a voltage regulator, allowing the device to be supplied with only one voltage. the six power supply pin types are:  vddout pin. it is the output of the voltage regulator. output voltage can be programmed from 1.55v to 1.80v by steps of 100 mv.  vddio1 pin. it powers the voltage regulator input and all the pioc io lines (1.8v-3.6v). vddio1 voltage must be above 2.2v to allow the chip to start-up (por threshold).  vddio2 pin. it powers the pioa and piob i/o li nes (1.8v-3.6v). it is also the output of the lcd voltage regulator. the output voltage can be programmed from 2.4v to 3.4v with 16 steps.  vddcore pin. it powers the lo gic of the device, the pll, the 2 mhz fast rc oscillator, the adc and the flash memory. it must be connected to the vddout pin with a decoupling capacitor.  vddinlcd pin. it powers the charge pump which can be used as lcd regulator power supply. voltage ranges from 1.8v to 3.6v. no separate ground pins are provided for the diff erent power supplies. only gnd pins are pro- vided and should be connected as shortl y as possible to the system ground plane. 5.2 low power modes the various low power modes of the AT91SAM7L128/64 are described below. 5.2.1 off (power down) mode in off (power down) mode, the entire chip is shut down. only a low level on the fwup pin can wake up the AT91SAM7L128/64 (by a push-button for example). internally, except for the fwup pin through vddio1, none of the chip is supplied. once the internal main power switch has been activated by fwup, the 32 khz rc oscillator and the supply controller are supplied, then t he core and peripherals are reset and the AT91SAM7L128/64 enters in active mode. refer to the system controller block diagram, fig- ure 9-1 on page 30 . at first power-up, if fwup is tied high, the device enters off mode. the pioa and piob pins? states are undefined. pioc and nrst pins are initialized as high impedance inputs. once the device enters active mode, the core and the parallel input/output controller are reset. then, if the chip enters off mode, pioa and piob pins are configured as inputs with pull-ups and pioc pins as high impedance inputs. current consumption in this mode is typically 100 na. 5.2.2 backup mode in backup mode, the supply controller, the zero -power power-on reset and the 32 khz oscillator (software selectable internal rc or external crystal) remain running. the voltage regulator and the core are switched off. prior to entering this mode, the rtc, the backup sram, the brownout detector, the charge pump, the lcd voltage regulator and the lcd controller can be set on or off separately.
13 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary table 5-1 on page 13 shows an example of backup mode with backup sram and rtc running. when entering this mode, all pio pins keep their previous states, they are reinitialized as inputs with pull-ups at wake-up. the AT91SAM7L128/64 can be awakened from this mode through the fwup pin, an event on wup0-15 pins, or an rtc alarm or brownout event. current consumption is 3.5 a typical without the lcd controller running. 5.2.3 wait mode in wait mode, the voltage regulator must be set in deep mode. voltage regulator output voltage should be set at a minimum voltage to decrease leakage in the digital core. no clock is running in the core. from this mode, a fast start-up is available (refer to section 5.4 ?fast start-up? ). in this mode, all pio pins keep their previous states. 5.2.4 idle mode the processor is in idle mode which means that the processor has no clock but the master clock (mck) remains running. the processor can also be wakened by an irq or fiq. 5.2.5 active mode the total dynamic power consumption is less than 30 ma at full speed (36 mhz) when running out of the flash. the power management controller can be used to adapt the frequency and the regulator output voltage can be adjusted to optimize power consumption. 5.2.6 low power mode summary table the modes detailed above are the main modes. in off mode, no options are available but once the shutdown controller is set to on, each part can be set to on, or off, separately and more modes can be active. the table below shows a summary of the configurations of the low power modes. notes: 1. when considering wake-up time, the time required to start the pll is not taken into account. once started, the at91sam7128/l64 works with the 2 mhz fast rc oscillator. the us er has to add the pll start-up time if it is needed in the system. the wake-up time is defined as the time take n for wake up until the first instruction is fetched. 2. the external lcd current consumption and the external load s on pios are not taken into account in the calculation. 3. bod current consumption is not included. 4. depends on mck frequency. table 5-1. low power mode conf iguration summary mode fwup supc, 32 khz oscillator, por rtc backup sram regulator (deep mode) core potential wake-up sources consumption (2)(3) wake-up time (1) off mode x fwup pin 100 na typ < 5 ms backup mode (with sram and rtc) xxxx fwup pin wup0-15 pins bod alarm rtc alarm 3.5 a typ < 0.5 ms wait mode (with sram and rtc) xxxx xx fast start-up through wup0-15 pins 9 a typ < 2 s (in case of fast start-up) idle mode x x x x x irqs fiq (4) (4)
14 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 5.3 wake-up sources the wake-up events allow the device to exit from backup mode. when a wake-up event is detected, the supply controller performs a s equence which automatically reenables the voltage regulator and the backup sram power supply, if it is not already enabled. figure 5-1. wake up sources 5.4 fast start-up the sam7l128/64 allows the processor to restart in a few microseconds while the processor is in wait mode. a fast start up can occur upon detection of a low level on one of the 16 wake-up inputs. the fast restart circuitry, as shown in figure 5-2 , is fully asynchronous and provides a fast start- up signal to the power management controller. as soon as the fast start-up signal is asserted, the pmc automatically restarts the embedded 2 mhz fast rc osc illator, switches the master clock on this 2 mhz clock and reenables t he processor clock, if it is disabled. wkup15 wkupen15 wkupt15 wkupen1 wkupen0 debouncer slck wkupdbc wkups debouncer slck fwup fwupen fwup rtcen rtc_alarm boden brown_out core supply restart wkupis0 wkupis1 wkupis15 falling/rising edge detector wkupt0 falling/rising edge detector wkupt1 falling/rising edge detector wkup0 wkup1 falling edge detector fwupdbc
15 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 5-2. fast start- up circuitry 5.5 voltage regulator the AT91SAM7L128/64 embeds a voltage regulator that is managed by the supply controller. this internal regulator is only intended to supply the internal core of AT91SAM7L128/64. it fea- tures three different operating modes:  in normal mode, the voltage regulator consumes less than 30 a static current and draws 60 ma of output current.  in deep mode, the current consumption of the voltage regulator is less than 8.5 a. it can draw up to 1 ma of output current. the default output voltage is 1.80v and the start-up time to reach normal mode is inferior to 400 s.  in shutdown mode, the voltage regulator consumes less than 1 a while its output is driven internally to gnd. the default output voltage is 1.80v and the start-up time to reach normal mode is inferior to 400 s. furthermore, in normal and deep modes, the regulator output voltage can be programmed by software with 4 different steps within the range of 1.55v to 1.80v. the default output voltage is 1.80v in both normal and deep modes. the voltage regulator can regulate 1.80v output voltage as long as the input voltage is above 1.95v. below 1.95v input voltage, the output voltage remains above 1.65v. output voltage adjusting ability allows curre nt consumption reduction on vddcore and also enables programming a lower voltage when the input volt age is lower than 1.95v. at 1.55v, the flash is still functional but with slower read access time. programming or erasing the flash is not possible under these conditions. mck maximum frequency is 25 mhz with vddcore at 1.55v (1.45v minimum). the regulator has an indicator that can be used by the software to show that the output voltage has the correct value (output voltage has reached at least 80% of the typical voltage). this flag is used by the supply controller. this feature is only possible when the voltage regulator is in normal mode at 1.80v. adequate output supply decoupling is mandatory fo r vddout in order to reduce ripple and avoid oscillations. one external 2.2 f (or 3.3 f) x7r capacitor must be connected between vddout and gnd. fast_restart wkup15 fstt15 wkup1 wkup0 fstt0 fstt1
16 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary adequate input supply dec oupling is mandatory fo r vddio1 in order to improve startup stability and reduce source voltage drop. the input decoupling capacitor should be placed close to the chip. for example, two capacitors can be used in parallel, 100 nf npo and 4.7 f x7r. 5.6 lcd power supply the AT91SAM7L128/64 embeds an on-chip lcd power supply comprising a regulated charge pump and an adjustable voltage regulator. the regulated charge pump output delivers 3.6v as long as its input is supplied between 1.8v and 3.6v. the regulated charge pump only requires two external flying capacitors and one exter- nal tank capacitor to operate. adequate input supply decoupling is mandatory for vddinlcd in order to improve startup sta- bility and reduce source voltage drop. the input de coupling capacitor should be placed close to the chip. current consumption of the charge pump and lcd bias when active is 350 a (max case). the regulated charge pump can be used to supply the lcd voltage regulator or as a 3.6v volt- age reference delivering up to 4 ma. the lcd voltage regulator output voltage is software selectable from 2.4v to 3.4v with 16 lev- els. its input should be supplied in the range of 2.5 to 3.6v. the lcd voltage regulator can be supplied by the regulated charge pump output or by an external supply. when the lcd voltage regulator is not used, its output must be connected to an external source in order to supply the pioa and piob i/o lines. figure 5-3 below shows the typical schematics needed: figure 5-3. the charge pump supplies the lcd regulator charge pump vddinlcd capp2 capm1 capp1 capm2 vddlcd vddio2 vdd3v6 lcd voltage regulator external supply r = 10 ?
17 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 5-4. the lcd regulator is externally supplied if the charge pump is not needed, the user can apply an external voltage. see figure 5-5 below: figure 5-5. the charge pump and the lcd regulator are not used please note that in this topology, switching ti me enhancement buffers are not available. (refer section 10.13 ?segment lcd controller? .) external supply charge pump vddinlcd vddlcd vddio2 vdd3v6 lcd voltage regulator capp2 capm1 capp1 capm2 r = 10 ? external supply charge pump vddinlcd capp2 capm1 capp1 capm2 vddlcd vddio2 vdd3v6 lcd voltage regulator
18 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 5.7 typical powe ring schematics the AT91SAM7L128/64 supports a 1.8v-3.6v single supply mode. the internal regulator input connected to the source and its output feeds vddcore. figure 5-6 shows the power schemat- ics to be used. figure 5-6. 3.3v system single power supply schematic vddio1 voltage regulator vddout main supply (1.8v-3.6v) vddcore charge pump vddinlcd vddlcd vddio2 vdd3v6 lcd voltage regulator capp2 capm1 capp1 capm2 r = 10 ?
19 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 6. i/o line considerations 6.1 jtag port pins tms, tdi and tck are schmitt trigger inputs. tms, tdi and tck do not integrate a pull-up resistor. tdo is an output, driven at up to vddio, and has no pull-up resistor. the jtagsel pin is used to select the jtag boundary scan when asserted at a high level. the jtagsel pin integrates a permanent pull-down resistor of about 15 k ? to gnd, so that it can be left unconnected for normal operations. 6.2 test pin the tst pin is used for manufacturing test or fast programming mode of the AT91SAM7L128/64 when asserted high. the tst pin integrates a permanent pull-down resistor of about 15 k ? to gnd, so that it can be left unconnected for normal operations. to enter fast programming mode, the tst and clkin pins must be tied high while fwup is tied low. 6.3 nrst pin the nrst pin is bidirectional. it is handled by the on-chip reset controller and can be driven low to provide a reset signal to the external components or asserted low externally to reset the microcontroller. there is no constraint on the length of the reset pulse and the reset controller can guarantee a minimum pulse length. the nrst pin integrates a permanent pull-up resistor to vddio1 of about 100 k ?. 6.4 nrstb pin the nrstb pin is input only and enables asynchronous reset of the AT91SAM7L128/64 when asserted low. the nrstb pin integrates a permanent pull-up resistor of about 15 k ? . this allows connection of a simple push button on the nrbst pin as a system-user reset. in all modes, this pin will reset the chip. it can be used as an external system reset source. in harsh environments, it is recommended to add an external capacitor (10 nf) between nrstb and vddio1. nrstb pin must not be connected to vddio1. there must not be an external pull-up on nrstb. 6.5 erase pin the erase pin is used to reinitialize the flash content and some of its nvm bits. it integrates a permanent pull-down resistor of about 15 k ? to gnd, so that it can be left unconnected for nor- mal operations. this pin is debounced by sclk to improve the glitch tolerance. when the erase pin is tied high during less than 100 ms, it is not taken into account. the pin must be tied high during more than 220 ms to perform the reinitialization of the flash.
20 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 6.6 pio controller lines all the i/o lines; pa0 to pa25, pb0 to pb23, pc0 to pc29 integrate a programmable pull-up resistor. programming of this pull-up resistor is performed independently for each i/o line through the pio controllers. all i/os have input schmitt triggers. typical pull-up value is 100 k ? . maximum frequency is:  36 mhz under 25 pf of load on pioc  36 mhz under 25 pf of load on pioa and piob 6.7 i/o line cu rrent drawing the pio lines pc5 to pc8 are high-drive current capable. each of these i/o lines can drive up to 4 ma permanently. the remaining i/o lines can draw only 2 ma. each i/o is designed to achieve very small leakage. however, the total current drawn by all the i/o lines cannot exceed 150 ma.
21 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 7. processor and architecture 7.1 arm7tdmi processor  risc processor based on armv4t von neumann architecture ? runs at up to 36 mhz, providing 0.9 mips/mhz  two instruction sets ?arm ? high-performance 32-bit instruction set ? thumb high code density 16-bit instruction set  three-stage pipeline architecture ? instruction fetch (f) ? instruction decode (d) ? execute (e) 7.2 debug and test features  integrated embedded in-circuit emulator ? two watchpoint units ? test access port accessible through a jtag protocol ? debug communication channel  debug unit ?two-pin uart ? debug communication channel interrupt handling ? chip id register  ieee1149.1 jtag boundary-scan on all digital pins 7.3 memory controller  programmable bus arbiter ? handles requests from the arm7tdmi and the peripheral dma controller  address decoder provides selection signals for ? five internal 1 mbyte memory areas ? one 256 mbyte embedded peripheral area  abort status registers ? source, type and all parameters of the access leading to an abort are saved ? facilitates debug by de tection of bad pointers  misalignment detector ? alignment checking of all data accesses ? abort generation in case of misalignment  remap command ? remaps the sram in place of the embedded non-volatile memory ? allows handling of dynamic exception vectors ? peripheral protection against write and/or user access  enhanced embedded flash controller
22 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary ? embedded flash interface, up to three programmable wait states ? prefetch buffer, buffering and anticipating the 16-bit requests, reducing the required wait states ? key-protected program, erase and lock/unlock sequencer ? single command for erasing, programming and locking operations ? interrupt generation in case of forbidden operation 7.4 peripheral dma controller  handles data transfer between peripherals and memories  eleven channels ? two for each usart ? two for the debug unit ? two for the serial peripheral interface ? two for the two wire interface ? one for the analog-to-digital converter  low bus arbitration overhead ? one master clock cycle needed for a transfer from memory to peripheral ? two master clock cycles needed for a transfer from peripheral to memory  next pointer management for reducing interrupt latency requirements
23 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 8. memories  128 kbytes of flash memory (AT91SAM7L128) ? single plane ? one bank of 512 pages of 256 bytes ? fast access time, 15 mhz single-cycle access in worst case conditions ? page programming time: 4.6 ms, including page auto-erase ? page programming without auto-erase: 2.3 ms ? full chip erase time: 10 ms ? 10,000 write cycles, 10-yea r data retent ion capability ? 16 lock bits, each protecting 16 lock regions of 32 pages ? protection mode to secure contents of the flash  64 kbytes of flash memory (at91sam7l64) ? single plane ? one bank of 256 pages of 256 bytes ? fast access time, 15 mhz single-cycle access in worst case conditions ? page programming time: 4.6 ms, including page auto-erase ? page programming without auto-erase: 2.3 ms ? full chip erase time: 10 ms ? 10,000 write cycles, 10-yea r data retent ion capability ? 8 lock bits, each protecting 8 lock regions of 32 pages ? protection mode to secure contents of the flash  6 kbytes of fast sram ? single-cycle access at full speed ? 2 kbytes of backup sram ? 4 kbytes of core sram
24 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 8-1. memory mapping 0x1000 0000 0x0000 0000 0x0fff ffff 0xf000 0000 0xefff ffff 0xffff ffff 256m bytes 256 mbytes 14 x 256 mbytes 3,584 mbytes 0x000f ffff 0x0010 0000 0x001f ffff 0x0020 0000 0x002f ffff 0x0030 0000 0x0000 0000 1 mbytes 1 mbytes 1 mbytes 253 mbytes 0xfffa 0000 0xfffa 3fff 0xfffa 4000 0xf000 0000 0xfffb 8000 0xfffc 0000 0xfffc 3fff 0xfffc 4000 0xfffc 7fff 0xfffd 7fff 0xfffd ffff 0xfffe 0000 0xfffe 3fff 0xffff efff 0xfffe 4000 0xffff ffff 0xffff f000 0xfffb 7fff 0xfff9 ffff 0xfffc ffff 0xfffd 8000 0xfffd bfff 0xfffc bfff 0xfffc c000 0xfffb ffff 0xfffb c000 0xfffb bfff 0xfffb 3fff 0xfffb 4000 0xfffd 0000 0xfffd c000 0xfffc 8000 16 kbytes 16 kbytes 16 kbytes 16 kbytes 16 kbytes 16 kbytes 16 kbytes 16 kbytes 0x0fff ffff 512 bytes/ 128 registers 512 bytes/ 128 registers 256 bytes/ 64 registers 16 bytes/ 4 registers 32 bytes/ 8 registers 16 bytes/ 4 registers 16 bytes/ 4 registers 256 bytes/ 64 registers 512 bytes/ 128 registers 0xffff f000 0xffff f200 0xffff f1ff 0xffff f3ff 0xffff fbff 0xffff fcff 0xffff feff 0xffff ffff 0xffff f400 0xffff fc00 0xffff fd0f 0xffff fd3f 0xffff fd4f 0xffff fd5f 0xffff f5ff 0xffff fd00 0xffff ff00 0xffff fd30 0xffff fd40 0xffff fd50 0xffff fd80 512 bytes/ 128 registers 512 bytes/ 128 registers 0xffff f600 0xffff f7ff 0xffff f800 0xffff f9ff 0xffff fa00 0xffff fd2f 0xffff fd10 32 bytes/ 8 registers 0xffff fd7f 0xffff fd60 0x003f ffff 0x0040 0000 0x004f ffff 0x0050 0000 internal memories undefined (abort) (1) can be rom, flash or sram depending on gpnvm1 and remap flash before remap sram after remap internal sram (back-up) 2 kbytes internal rom reserved boot memory (1) address memory space internal memory mapping note: tc0, tc1, tc2 usart0 usart1 pwmc reserved reserved reserved reserved reserved reserved reserved twi spi slcdc adc aic dbgu pioa reserved pmc mc rtc wdt pit rstc peripheral mapping system controller mapping internal peripherals reserved sysc reserved piob pioc supc internal sram (core) 4 kbytes internal flash
25 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 8.1 embedded memories 8.1.1 internal memories 8.1.1.1 internal sram the AT91SAM7L128/64 embeds a high-speed 4-kbyte sram bank and a 2-kbyte backup sram bank. the backup sram is directly supplied on 1.8v-3.6v supply domain. the 4-kbyte core sram is supplied by vddcore which is connected to the output of the volt- age regulator. after reset and until the remap command is performed, the 4-kbyte core sram is only acces- sible at address 0x0020 0000. the 2-kbyte backup sram is accessible at address 0x0030 0000. after remap, the 4-kbyte core sram also becomes available at address 0x0. the user can see the 6 kbytes of sram contiguously at address 0x002f f000. 8.1.1.2 internal rom the AT91SAM7L128/64 embeds an internal rom. the rom is always mapped at address 0x0040 0000. the rom contains the ffpi and sam-ba program. rom size is 12 kbytes. 8.1.1.3 internal flash  the AT91SAM7L128 features one bank of 128 kbytes of flash.  the at91sam7l64 features one bank of 64 kbytes of flash. at any time, the flash is mapped to address 0x0010 0000. a general purpose nvm (gpnvm1) bit is used to boot either on the rom (default) or from the flash. this gpnvm1 bit can be cleared or set respec tively through the commands ?clear general-pur- pose nvm bit? and ?set general-purpose nvm bit? of the eefc user interface. setting the gpnvm bit 1 selects the boot from the flash, clearing it selects the boot from the rom. asserting erase clears the gpnvm bit 1 and thus selects the boot from the rom by default.
26 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 8-2. internal memory mapping with gpnvm bit 1 = 0 (default) figure 8-3. internal memory mapping with gpnvm bit 1 = 1 8.1.2 embedded flash 8.1.2.1 flash overview  the flash of the AT91SAM7L128 is organized in 512 pages (single plane) of 256 bytes.  the flash of the at91sam7l64 is organized in 256 pages (single plane) of 256 bytes. the flash contains a 128-byte write buffer, accessible through a 32-bit interface. 8.1.2.2 flash power supply the flash is supplied by vddcore through a power switch controlled by the supply controller. 256 mbytes rom before remap core sram (4 kbytes) after remap undefined areas (abort) 0x000f ffff 0x001f ffff 0x003f ffff 0x0fff ffff 1 mbyte 1 mbyte 1 mbyte 251 mbytes internal flash internal sram (backup) 2 kbytes 0x0000 0000 0x0010 0000 0x0030 0000 0x0040 0000 internal rom 12 kbytes 0x004f ffff 0x0050 0000 1 mbyte internal sram (core) 4 kbytes 1 mbyte 0x0020 0000 0x002f ffff 256 mbytes flash before remap core sram (4 kbytes) after remap undefined areas (abort) 0x000f ffff 0x001f ffff 0x003f ffff 0x0fff ffff 1 mbyte 1 mbyte 1 mbyte 251 mbytes internal flash internal sram (backup) 2 kbytes 0x0000 0000 0x0010 0000 0x0030 0000 0x0040 0000 internal rom 12 kbytes 0x004f ffff 0x0050 0000 1 mbyte internal sram (core) 4 kbytes 1 mbyte 0x0020 0000 0x002f ffff
27 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 8.1.2.3 enhanced embedded flash controller the enhanced embedded flash controller (eef c) manages accesses performed by the mas- ters of the system. it enab les reading the flash and writing t he write buffer. it also contains a user interface, mapped within the memory controller on the apb. the enhanced embedded flash controller ensures the interface of the flash block with the 32- bit internal bus. its 128-bit wide memory interface increases performance. it also manages the programming, erasing, locking and unlocking sequences of the flas h using a full set of com- mands. one of the commands returns the embedded flash descriptor definition that informs the system about the flash organization, thus making the software generic. 8.1.2.4 lock regions the AT91SAM7L128 embedded flash controller manages 16 lock bits to protect 16 regions of the flash against inadvertent flash eras ing or programming commands. the AT91SAM7L128 contains 16 lock regions and each lock region co ntains 32 pages of 256 bytes. each lock region has a size of 8 kbytes. the at91sam7l64 embedded flash controller manages 8 lock bits to protect 8 regions of the flash against inadvertent flash erasing or programming commands. the at91sam7l64 con- tains 8 lock regions and each lock region contains 32 pages of 256 bytes. each lock region has a size of 8 kbytes. if a locked-region?s erase or program command occurs, the command is aborted and the eefc triggers an interrupt. the 16 nvm bits are software programmable through the eefc user interface. the command ?set lock bit? enables the pr otection. the command ?clear lo ck bit? unlocks the lock region. asserting the erase pin clears the lock bits, thus unlocking the entire flash. 8.1.2.5 security bit feature the AT91SAM7L128/64 features a security bit, bas ed on a specific general purpose nvm bit (gpnvm bit 0). when the security is enabled, an y access to the flash, either through the ice interface or through the fast flash programming in terface, is forbidden. this ensures the confi- dentiality of the code programmed in the flash. this security bit can only be enabled, through the command ?set general purpose nvm bit 0? of the eefc user interface. disabling the security bit can only be achieved by asserting the erase pin at 1, and after a full flash erase is performed. when the security bit is deactivated, all accesses to the flash are permitted. it is important to note that the assertion of the erase pin should always be longer than 200 ms. as the erase pin integrates a permanent pull-down, it can be left unconnected during normal operation. however, it is safer to connect it directly to gnd fo r the final application. 8.1.2.6 calibration bits nvm bits are used to calibrate the brownout detector and the voltage regulator. these bits are factory configured and cannot be changed by the user. the erase pin has no effect on the cal- ibration bits.
28 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 8.1.2.7 gpnvm bits the AT91SAM7L128/64 features two gpnvm bits that can be cleared or set respectively through the commands ?clear gpnvm bit? and ?set gpnvm bit? of the eefc user interface.. 8.1.3 fast flash programming interface the fast flash programming interface allows programming the device through either a serial jtag interface or through a multiplexed fully-handshaked parallel port. it allows gang program- ming with market-standard industrial programmers. the ffpi supports read, page program, page erase, full erase, lock, unlock and protect commands. the fast flash programming interface is enabled and the fast programming mode is entered when tst and clkin are tied high while fwup is tied low.  the flash of the AT91SAM7L128 is organized in 512 pages of 256 bytes (single plane).  the flash of the at91sam7l64 is organized in 256 pages of 256 bytes (single plane). the flash contains a 128-byte write buffer, accessible through a 32-bit interface. 8.1.4 sam-ba boot the sam-ba boot is a default boot program which provides an easy way to program in-situ the on-chip flash memory. the sam-ba boot assistant supports serial communication via the dbgu. the sam-ba boot provides an interface with sam-ba graphic user interface (gui). the sam-ba boot resides in rom and is mapped at address 0x0 when gpnvm bit 1 is set to 0. table 8-1. general-purpose non-volatile memory bits gpnvmbit[#] function 0 security bit 1 boot mode selection
29 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 9. system controller the system controller manages a ll vital blocks of the microcontr oller, interrupts , clocks, power, time, debug and reset. the system controller block diagram is shown in figure 9-1 on page 30 . 9.1 system controller mapping the system controller peripherals are all mapped to the highest 4 kbytes of address space, between addresses 0xffff f000 and 0xffff ffff. figure 8-1 on page 24 shows the map- ping of the system controller. note that the memory controller configuration user interface is also mapped within this address space
30 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 9-1. system controller block diagram segment lcd controller lcd charge pump software controlled voltage regulator adc pioc pioa - piob memory controller sram 4 kbytes periodic interval timer watchdog timer arm7tdmi flash peripherals peripheral bridge zero-power power-on reset brownout detector rtc power management controller embedded 32 khz rc oscillator xtal 32 khz oscillator sram 2 kbytes supply controller embedded 2 mhz rc oscillator reset controller backup power supply core power supply lcd power supply pll lcd_mode vr_on vr_ok lcd_out vr_mode lcd_eof lcd_nreset supply_on bod_on brown_out rtc_on rtc_alarm slck rtc_nreset proc_nreset periph_nreset ice_nreset master clock mck slck core_nreset main clock mainck slck fcin nrst slck pllck fstt0 - fstt15 pllrc xin xout osc32k_xtal_en osc32k_sel slow clock slck sram_on osc32k_rc_en core_nreset slck vddio1 vddcore vddlcd capm1-capp1 capm2-capp2 vddout seg0 - seg39 com0 - com7 advref ad0 - ad3 vddlcd fwup nrstb wkup0 - wkup15
31 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 9.2 supply controller (supc) the supply controller controls the power supplies of each section of the product:  the processor and the peripherals  the flash memory  the backup sram  the lcd controller, the charge pump and the lcd voltage regulator  the real time clock the supply controller has its own reset circuitr y and is clocked by the 32 khz slow clock generator. the reset circuitry is based on the nrstb pin, a zero-power power-on reset cell and a brownout detector cell. the zero-power power-on reset allows the supply controller to start properly, while the software-programmable brownout detector allows detection of either a battery discharge or main voltage loss. the slow clock generator is based on a 32 kh z crystal oscillator and an embedded 32 khz rc oscillator. the slow clock defaul ts to the rc oscillator, but th e software can enable the crystal oscillator and select it as the slow clock source. the supply controller starts up the device by se quentially enabling the internal power switches and the voltage regulator, then it generates the proper reset signals to the core power supply. it also enables to set the system in different low power modes and to wake it up from a wide range of events. 9.3 reset controller  based on one power-on reset cell and a brownout detector  status of the last reset; either power-up reset, software reset, user reset, watchdog reset, brownout reset  controls the internal resets and the nrst pin output  allows to shape a signal on the nrst line, guaranteeing that the length of the pulse meets any requirement. 9.3.1 brownout detector (bod) and power-on reset the AT91SAM7L128/64 embeds one zero-power power-on reset and a brownout detection cir- cuit. both monitor vddio1. the zero-power power-on reset circuit is always acti ve. it provides an internal reset signal to the AT91SAM7L128/64 for power-on and power-off operations and ensures a proper reset for the supply controller. the brownout detection circuit is disabled by def ault and can be enabled by software. it monitors vddio1. the brownout detection circuit is factory calibrated. the threshold is programmable via software. it can be selected from 1.9v to 3.4v with 100 mv steps. it can be programmed to generate either a wake-up alarm or a reset. it can be used to wake up the chip from backup mode if the supply drops below a selected threshold (to warn the end user about a discharged battery for example) and to reset the chip when the voltage is too low.
32 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary bod current consumption is 25 a, typically. to decrease current consumption, the software can disable the brownout detector, especially in low-power mode. the software can also configure the bod in ?switched? mode. in this mode, an internal state machine switches on and off periodically and stores the output of the bod. this decreases the current consumption (inferior to 2 a) while the detection is still active. this feature is suitable in low-power mode where voltag e detection is still needed. 9.4 clock generator the clock generator embeds one lo w-power rc oscillator, one fa st rc oscillator, one crystal oscillator and one pll with th e following characteristics:  rc oscillator ranges between 22 khz and 42 khz  fast rc oscillator ranges between 1.5 mh z and 2.5 mhz  crystal oscillator at 32 khz (can be bypassed)  pll output ranges between 18 mhz and 47 mhz it provides slck, mainck and pllck. the supply controller selects be tween the internal rc oscillator and the 32 khz crystal oscilla- tor. the unused oscillator is disabled so that power consumption is optimized. the 2 mhz fast rc oscillator is the default sele cted clock (mainck) which is used at start-up . the user can select an external clock (clkin) through software. the pll needs an external rc filter and starts up in a very short time (inferior to 1 ms).
33 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 9-2. clock generator block diagram 9.5 power management controller the power management controller uses the clock generator outputs to provide:  the processor clock pck  the master clock mck  all the peripheral clocks, independently controllable  three programmable clock outputs pckx the master clock (mck) is programmable from a few hundred hz to the maximum operating fre- quency of the device. the processor clock (pck) switches off when entering processor idle mode, thus allowing reduced power consumption while waiting for an interrupt. the lcd controller clock is sclk. power management controller xin xout slow clock slck main clock mainck pll clock pllck control status embedded 2 mhz rc oscillator oscsel slck clkin mck_sel pllrc xtal 32 khz oscillator pll and divider clock generator embedded 32 khz rc oscillator
34 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 9-3. power management co ntroller block diagram 9.6 advanced interrupt controller  controls the interrupt lines (nirq and nfiq) of an arm processor  individually maskable and vectored interrupt sources ? source 0 is reserved for the fast interrupt input (fiq) ? source 1 is reserved for system peripherals (rtc, pit, efc, pmc, dbgu, etc.) ? other sources control the peripheral interrupts or external interrupts ? programmable edge-triggered or level-sensitive internal sources ? programmable positive/negative edge-triggered or high/low level-sensitive external sources  8-level priority controller ? drives the normal interrupt nirq of the processor ? handles priority of the interrupt sources ? higher priority interrupts can be served during service of lower priority interrupt  vectoring ? optimizes interrupt service routine branch and execution ? one 32-bit vector register per interrupt source ? interrupt vector register reads the corresponding current interrupt vector protect mode ? easy debugging by preventing automatic operations fast forcing ? permits redirecting any interrupt source on the fast interrupt  general interrupt mask ? provides processor synchronization on events without triggering an interrupt 9.7 debug unit  comprises: ? one two-pin uart ? one interface for the debug co mmunication channel (dcc) support mck periph_clk[2..14] int slck mainck pllck prescaler /1,/2,/4,...,/64 pck processor clock controller idle mode master clock controller peripherals clock controller on/off slck mainck pllck prescaler /1,/2,/4,...,/64 programmable clock controller pck[0..2]
35 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary ? one set of chip id registers ? one interface providing ice access prevention two-pin uart ? usart-compatible user interface ? programmable baud rate generator ? parity, framing and overrun error ? automatic echo, local loopback and remote loopback channel modes  debug communication channel support ? offers visibility of commrx and commt x signals from the arm processor  chip id registers ? identification of the device revision, sizes of the embedded memories, set of peripherals ? chip id is 0x2733 0740 (version 0) for AT91SAM7L128 ? chip id is 0x2733 0540 (version 0) for at91sam7l64 9.8 period interval timer  20-bit programmable counter plus 12-bit interval counter 9.9 watchdog timer  12-bit key-protected programmable counter running on prescaled slck  provides reset or interrupt signals to the system  counter may be stopped while the processor is in debug state or in idle mode 9.10 real-time clock  two hundred year calendar  programmable periodic interrupt  time, date and alarm 32-bit parallel load 9.11 pio controllers  three pio controllers. ? pio a controls 26 i/o lines ? pio b controls 24 i/o lines ? pio c controls 30 i/o lines  fully programmable through set/clear registers  multiplexing of two peripheral functions per i/o line  for each i/o line (whether assigned to a peripheral or used as general-purpose i/o) ? input change interrupt ? half a clock period glitch filter ? multi-drive option enables driving in open drain ? programmable pull-up on each i/o line ? pin data status register, supplies visib ility of the level on the pin at any time  synchronous output, provides set and clear of several i/o lines in a single write
36 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10. peripherals 10.1 user interface the user peripherals are mapped in the 256 mbytes of the address space between 0xf000 0000 and 0xffff efff. each peripheral is allocated 16 kbytes of address space. a complete memory map is presented in figure 8-1 on page 24 . 10.2 peripheral identifiers the AT91SAM7L128/64 embeds a wide range of peripherals. table 10-1 defines the peripheral identifiers of the AT91SAM7L128/64. unique per ipheral identifiers are defined for both the advanced interrupt controller and the power management controller. note: 1. setting sysirq and adc bits in the clock set/clear register s of the pmc has no effect. the system controller and adc are continuously clocked. the adc clock is automatically started for the first conversion. in sleep mode the a dc clock is automatically stopped after each conversion. table 10-1. peripheral identifiers peripheral id peripheral mnemonic peripheral name external interrupt 0 aic advanced interrupt controller fiq 1 sysirq (1) system interrupt 2 pioa parallel i/o controller a 3 piob parallel i/o controller b 4 pioc parallel i/o controller c 5 spi serial peripheral interface 6 us0 usart 0 7 us1 usart 1 8 reserved 9 twi two-wire interface 10 pwmc pwm controller 11 slcdc segmented lcd controller 12 tc0 timer/counter 0 13 tc1 timer/counter 1 14 tc2 timer/counter 2 15 adc (1) analog-to digital converter 16 - 29 reserved 30 aic advanced interrupt controller irq0 31 aic advanced interrupt controller irq1
37 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10.3 peripheral multiplexing on pio lines the AT91SAM7L128/64 features three pio controllers, pioa, piob and pioc, that multiplex the i/o lines of the peripheral set. pio controller a, b and c control respectively 26, 24 and 30 lines. each line can be assigned to one of two peripheral functions, a or b. table 10-2 on page 38 defines how the i/o lines of the peripherals a, b or the analog inputs are multiplexed on the pio controller a, b and c. the two columns ?function? and ?comments? have been inserted for the user?s own comments; they may be used to track how pins are defined in an application. note that some peripheral functions that are output only may be duplicated in the table. at reset, all i/o lines are automatically configured as input with the programmable pull-up enabled, so that the device is maintained in a static state as soon as a reset is detected.
38 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10.4 pio controller a multiplexing table 10-2. multiplexing on pio controller a pio controller a application usage i/o line peripheral a peripheral b extra function function comments pa 0 c o m 0 pa 1 c o m 1 pa 2 c o m 2 pa 3 c o m 3 pa 4 c o m 4 pa 5 c o m 5 pa6 seg0 pa7 seg1 pa8 seg2 pa9 seg3 pa10 seg4 pa11 seg5 pa12 seg6 pa13 seg7 pa14 seg8 pa15 seg9 pa16 seg10 pa17 seg11 pa18 seg12 pa 1 9 seg13 pa 2 0 seg14 pa21 seg15 pa 2 2 seg16 pa23 seg17 pa 2 4 seg18 pa25 seg19
39 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10.5 pio controller b multiplexing table 10-3. multiplexing on pio controller b pio controller b application usage i/o line peripheral a peripheral b extra function function comments pb0 seg20 pb1 seg21 pb2 seg22 pb3 seg23 pb4 seg24 pb5 seg25 pb6 seg26 pb7 seg27 pb8 seg28 pb9 seg29 pb10 seg30 pb11 seg31 pb12 npcs3 seg32 pb13 npcs2 seg33 pb14 npcs1 seg34 pb15 rts1 seg35 pb16 rts0 seg36 pb17 dtr1 seg37 pb18 pwm0 seg38 pb19 pwm1 seg39 pb20 pwm2 com6 pb21 pwm3 com7 pb22 npcs1 pck1 com8 pb23 pck0 npcs3 com9
40 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10.6 pio controller c multiplexing notes: 1. wake-up source in backup mode (managed by the supc). 2. fast start-up source in wait mode (managed by the pmc). table 10-4. multiplexing on pio controller c pio controller c application usage i/o line peripheral a peripheral b extra functions function comments pc0 cts1 pwm2 pgmen0/wkup0 (1)(2) pc1 dcd1 tioa2 pgmen1/wkup1 (1)(2) pc2 dtr1 tiob2 pgmen2/wkup2 (1)(2) pc3 dsr1 tclk1 pgmncmd/wkup3 (1)(2) pc4 ri1 tclk2 pgmrdy/wkup4 (1)(2) pc5 irq1 npcs2 pgmnoe/wkup5 (1)(2) pc6 npcs1 pck2 pgmnvalid/wkup6 (1)( 2) pc7 pwm0 tioa0 pgmmo/high drive pc8 pwm1 tiob0 pgmm1/high drive pc9 pwm2 sck0 pgmm2/high drive pc10 twd npcs3 pgmm3/high drive pc11 twck tclk0 pgmd0/wkup7 (1)(2) pc12 rxd0 npcs3 pgmd1/wkup8 (1)(2) pc13 txd0 pck0 pgmd2/wkup9 (1)(2) pc14 rts0 adtrg pgmd3/wkup10 (1)(2) pc15 cts0 pwm3 pgmd4/wkup11 (1)(2) pc16 drxd npcs1 pgmd5 pc17 dtxd npcs2 pgmd6 pc18 npcs0 pwm0 pgmd7 pc19 miso pwm1 pgmd8 pc20 mosi pwm2 pgmd9 pc21 spck pwm3 pgmd10 pc22 npcs3 tioa1 pgmd11 pc23 pck0 tiob1 pgmd12 pc24 rxd1 pck1 pgmd13 pc25 txd1 pck2 pgmd14 pc26 rts0 fiq pgmd15/wkup12 (1)(2) pc27 npcs2 irq0 wkup13 (1)(2) pc28 sck1 pwm0 wkup14 (1)(2) pc29 rts1 pwm1 wkup15 (1)(2)
41 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 10.7 serial peripheral interface  supports communication with external serial devices ? four chip selects with external decoder allow communication with up to 15 peripherals ? serial memories, such as dataflash ? and 3-wire eeproms ? serial peripherals, such as adcs, dacs, lcd controllers, can controllers and sensors ? external co-processors  master or slave serial peripheral bus interface ? 8- to 16-bit programmable data length per chip select ? programmable phase and polarity per chip select ? programmable transfer delays per chip select, between consecutive transfers and between clock and data ? programmable delay between consecutive transfers ? selectable mode fault detection ? maximum frequency at up to master clock 10.8 two wire interface  master, multi-master and slave mode operation  compatibility with atmel two-wire interface, serial memory and i 2 c compatible devices  one, two or three bytes for slave address  sequential read/write operations  bit rate: up to 400 kbit/s  general call supported in slave mode  connecting to pdc channel capabilities optimizes data transfers in master mode only ? one channel for the receiver, one channel for the transmitter ? next buffer support 10.9 usart  programmable baud rate generator  5- to 9-bit full-duplex synchronous or asynchronous serial communications ? 1, 1.5 or 2 stop bits in asynchronous mode ? 1 or 2 stop bits in synchronous mode ? parity generation and error detection ? framing error detection, overrun error detection ? msb or lsb first ? optional break generation and detection ? by 8 or by 16 over-sampling receiver frequency ? hardware handshaking rts - cts ? modem signals management dtr-dsr-dcd-ri on usart1 ? receiver time-out and transmitter timeguard
42 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary ? multi-drop mode with address generation and detection ? optional manchester encoding  rs485 with driver control signal  iso7816, t = 0 or t = 1 protocols for interfacing with smart cards ? nack handling, error counter with repetition and iteration limit  irda modulation and demodulation ? communication at up to 115.2 kbps  test modes ? remote loopback, local loopback, automatic echo 10.10 timer counter  three 16-bit timer counter channels ? three output compare or two input capture  wide range of functions including: ? frequency measurement ? event counting ? interval measurement ? pulse generation ? delay timing ? pulse width modulation ? up/down capabilities  each channel is user-configurable and contains: ? three external clock inputs  five internal clock inputs, as defined in table 10-5 ? two multi-purpose input/output signals ? two global registers that act on all three tc channels 10.11 pwm controller  four channels, one 16-bit counter per channel  common clock generator, providing thirteen different clocks ? one modulo n counter providing eleven clocks ? two independent linear dividers working on modulo n counter outputs table 10-5. timer counter clock assignment tc clock input clock timer_clock1 mck/2 timer_clock2 mck/8 timer_clock3 mck/32 timer_clock4 mck/128 timer_clock5 mck/1024
43 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary  independent channel programming ? independent enable/disable commands ? independent clock selection ? independent period and duty cycle, with double buffering ? programmable selection of the output waveform polarity ? programmable center or left aligned output waveform 10.12 analog-to-digital converter  4-channel adc supplied by the internal voltage regulator  10-bit 460 ksamples/sec. or 8-bit 660 ksam ples/sec. successive approximation register adc  2 lsb integral non linearity, 1 lsb differential non linearity  integrated 4-to-1 multiplexer  external voltage reference for better accuracy on low voltage inputs  individual enable and disable of each channel  multiple trigger sources ? hardware or software trigger ? external trigger pin ? timer counter 0 to 2 outputs tioa0 to tioa2 trigger  sleep mode and conversion sequencer ? automatic wakeup on trigger and back to sleep mode after conversions of all enabled channels 10.13 segment lcd controller the segment lcd controller/driver is intended fo r monochrome passive liquid crystal display (lcd) with up to 10 common terminals and up to 40 segment terminals.  40 segments and 10 common terminals display capacity  support static, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8, 1/9 and 1/10 duty  support static, 1/2, 1/3, 1/4 bias  power-save mode display  software-selectable low-power waveform capability  flexible frame frequency selection  segment and common pins, not needed for driving the display, can be used as ordinary i/o pins  switching time enhancement internal buffers
44 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 11. package drawings figure 11-1. 128-lead lqfp package drawing . table 11-1. device and lqfp package maximum weight AT91SAM7L128/64 800 mg table 11-2. package reference jedec drawing reference ms-026 jesd97 classification e3 table 11-3. lqfp package characteristics moisture sensitivity level 3
45 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary figure 11-2. 144-lead lfbga package drawing this package respects the recommendations of the nemi user group. all dimensions are in mm table 11-4. device and lfbga package maximum weight AT91SAM7L128/64 mg table 11-5. package reference jedec drawing reference ms-026 jesd97 classification e1 table 11-6. lfbga package characteristics moisture sensitivity level 3
46 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary 12. ordering information table 12-1. ordering information ordering code package package type temperature operating range AT91SAM7L128-au lqfp128 green industrial (-40c to 85c) at91sam7l64-au lqfp128 green industrial (-40c to 85c) AT91SAM7L128-cu lfbga144 green industrial (-40c to 85c) at91sam7l64-cu lfbga144 green industrial (-40c to 85c)
47 6257as?atarm?28-feb-08 AT91SAM7L128/64 preliminary revision history doc. rev comments change request ref. 6257as first issue
6257as?atarm?28-feb-08 headquarters international atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel: 1(408) 441-0311 fax: 1(408) 487-2600 atmel asia room 1219 chinachem golden plaza 77 mody road tsimshatsui east kowloon hong kong tel: (852) 2721-9778 fax: (852) 2722-1369 atmel europe le krebs 8, rue jean-pierre timbaud bp 309 78054 saint-quentin-en- yvelines cedex france tel: (33) 1-30-60-70-00 fax: (33) 1-30-60-71-11 atmel japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel: (81) 3-3523-3551 fax: (81) 3-3523-7581 product contact web site www.atmel.com www.atmel.com/at91sam technical support at91sam support sales contacts www.atmel.com/contacts/ literature requests www.atmel.com/literature disclaimer: the information in this document is provi ded in connection with atmel products. no license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this docum ent or in connection with the sale of atmel products. except as set forth in atmel?s terms and condi- tions of sale located on atmel?s web site, atmel assumes no li ability whatsoever and disclaims any express, implied or statutor y warranty relating to its products including, but not limited to , the implied warranty of merchantability, fitness for a particu lar purpose, or non-infringement. in no event shall atmel be liable for any direct, indire ct, consequential, punitive, special or i nciden- tal damages (including, without limitation, damages for loss of profits, business interruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of th e possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or completeness of the co ntents of this document and reserves the ri ght to make changes to specifica- tions and product descriptions at any time without notice. atme l does not make any commitment to update the information contain ed herein. unless specifically pro- vided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel?s products are n ot intended, authorized, or warranted for use as components in applications intended to support or sustain life. ? 2008 atmel corporation. all rights reserved. atmel ? , logo and combinations thereof, dataflash ? , sam-ba ? and others are registered trade- marks or trademarks of atmel corporation or its subsidiaries. arm ? the arm ? powered logo and others are registered trademarks or trade- marks of arm ltd. other terms and product names may be trademarks of others. 6257as?atarm?28-feb-08


▲Up To Search▲   

 
Price & Availability of AT91SAM7L128

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X